package commonAdmin.domain;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.URL;

@Table(name = "t_game")
public class Game {

	@Id
	private Long id; // 游戏id
	@Column(name = "gameName")
	@NotEmpty
	private String name;// 游戏名称
	private String gamePlat; // 端游 页游 手游
	private Integer gameType; // 游戏类型
	private String logoUrl; // 游戏logo
	@URL @NotEmpty
	private String installPkgUrl; // 游戏安装包

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGamePlat() {
		return gamePlat;
	}

	public void setGamePlat(String gamePlat) {
		this.gamePlat = gamePlat;
	}

	public void setGameType(Integer gameType) {
		this.gameType = gameType;
	}

	public Integer getGameType() {
		return gameType;
	}

	public String getLogoUrl() {
		return logoUrl;
	}

	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}

	public String getInstallPkgUrl() {
		return installPkgUrl;
	}

	public void setInstallPkgUrl(String installPkgUrl) {
		this.installPkgUrl = installPkgUrl;
	}

	@Override
	public String toString() {
		return "Game [id=" + id + ", name=" + name + ", gamePlat=" + gamePlat + ", gameType=" + gameType + ", logoUrl=" + logoUrl + ", installPkgUrl=" + installPkgUrl + "]";
	}
}
